package com.wenhao.shopee;

import java.util.Scanner;

/**
 * @author Wenhao Tong
 * @create 2021-09-01 20:39
 */
public class Main2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s = scanner.nextLine();
        int mod = s.length() % 3;
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0;i < s.length();i++) {
            stringBuilder.append(s.charAt(i));
            if ((i + 1) % 3 == mod && i != s.length() - 1) {
                stringBuilder.append(",");
            }
        }
        System.out.println(stringBuilder);
    }
}
